package com.isdepci.common.constant;

/**
 * 异常代码
 */
public class ErrorStatus {

    public static final String EXCEPTION = "000000";

    //-------------------------------数据相关 01开头
    /**
     * 数据格式转换错误 ClassCastException
     */
    public static final String CLASS_CAST_EXCEPTION = "010001";
    /**
     * NULL值 NullPointerException
     */
    public static final String NULL_POINTER_EXCEPTION = "010003";
    /**
     * 文件读取失败，请检查路径  FileNotFoundException
     */
    public static final String FILE_NOT_FOUND_EXCEPTION = "010004";
    /**
     * 数组  超出范围 ArrayIndexOutOfBoundsException
     */
    public static final String ARRAY_INDEX_OUT_OF_BOUNDS_EXCEPTION = "010005";
    /**
     * 参数格式异常
     */
    public static final String HTTP_MESSAGE_NOT_READABLE_EXCEPTION = "010002";

    //-------------------------------数据库相关 02开头
    /**
     * JDBC驱动错误
     */
    public static final String JDBC_EXCEPTION = "020001";
    /**
     * 数据库无法链接      ConnectException
     */
    public static final String NOT_LINKED_EXCEPTION = "020002";
    /**
     * 数据库 缺少字段
     */
    public static final String SQL_SYNTAX_ERROR  = "020004";
    /**
     * 事务处理失败
     */
    public static final String TRANSACTION_FAILED = "020003";
    /**
     * SQL执行错误  SQLException
     */
    public static final String SQL_EXCEPTION = "020005";

    //-------------------------------账号权限相关 03开头
    /**
     * 登录账号或密码不正确
     */
    public static final String ACCOUNT_PASSWORD_WRONG  = "030001";
    /**
     * 访问权限不足
     */
    public static final String NOT_ACCESS_PERMISSION = "030002";

    //------------------------------ 调用 04开头
    /**
     * 连接被拒绝 ConnectException
     */
    public static final String CONNECT_EXCEPTION = "040001";
    /**
     * 没有到主机的路由 NoRouteToHostException
     */
    public static final String NO_ROUTE_TO_HOST_EXCEPTION = "040002";

    //-------------------------------服务器相关 05开头
    /**
     * StackOverflowError 虚拟机内存超出
     */
    public static final String STACK_OVER_FLOW_ERROR_EXCEPTION = "050001";






}
